﻿<UserControl x:Class="Chapters.Chapter14.SimpleCommandingExample"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:Chapter14="clr-namespace:Chapters.Chapter14">
    <UserControl.Resources>
        <Chapter14:TestCommand x:Key="SimpleCommand" />
    </UserControl.Resources>
    
    <UserControl.CommandBindings>
        <CommandBinding Command="{StaticResource SimpleCommand}" />
    </UserControl.CommandBindings>
    <Grid>
        <Button x:Name="CommandRaiserButton" Command="{StaticResource SimpleCommand}">Click to raise command</Button>
    </Grid>
</UserControl>
